// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'Id',
        footer: "Foots",
        cnName: '物料台账',
        name: 'MaterialLedger',
        url: "/MaterialLedger/",
        sortName: "Id"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"QRCodeBarcode":"","MaterialCode":"","MaterialDescription":"","Batch":"","SpecificationModel":"","MaterialType":"","ProcessRoute":"","Status":""};
    const editFormOptions = [[{"dataKey":"二维码","data":[],"title":"二维码","required":true,"field":"QRCodeBarcode","type":"select"}],
                              [{"title":"物料编码","required":true,"field":"MaterialCode"}],
                              [{"title":"物料描述","required":true,"field":"MaterialDescription"}],
                              [{"title":"批次","required":true,"field":"Batch"}],
                              [{"title":"规格型号","required":true,"field":"SpecificationModel"}],
                              [{"title":"物料类型","required":true,"field":"MaterialType"}],
                              [{"title":"工艺线路","required":true,"field":"ProcessRoute"}],
                              [{"dataKey":"状态","data":[],"title":"状态","required":true,"field":"Status","type":"radio"}]];
    const searchFormFields = {};
    const searchFormOptions = [[{"dataKey":"二维码","data":[],"title":"二维码","field":"QRCodeBarcode"}]];
    const columns = [{field:'Id',title:'主键',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'QRCodeBarcode',title:'二维码',type:'string',bind:{ key:'二维码',data:[]},width:110,require:true,align:'left'},
                       {field:'MaterialCode',title:'物料编码',type:'string',width:110,require:true,align:'left'},
                       {field:'MaterialDescription',title:'物料描述',type:'string',width:110,require:true,align:'left'},
                       {field:'Batch',title:'批次',type:'string',width:110,require:true,align:'left'},
                       {field:'SpecificationModel',title:'规格型号',type:'string',width:110,require:true,align:'left'},
                       {field:'MaterialType',title:'物料类型',type:'string',width:110,require:true,align:'left'},
                       {field:'ProcessRoute',title:'工艺线路',type:'string',width:110,require:true,align:'left'},
                       {field:'Status',title:'状态',type:'int',bind:{ key:'状态',data:[]},width:110,require:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}